﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using XC.EFCore.Repositories.Admin.Core;
using XC.Infrastructure.SerilogUtil;
using XC.Models.Entities.Framework;

namespace XC.WpfHost.Views.Pages
{
    /// <summary>
    /// DashboardPage.xaml 的交互逻辑
    /// </summary>
    public partial class DashboardPage : Page
    {
        private readonly IAdminRepository<SysFunction> repository;

        public DashboardPage(IAdminRepository<SysFunction> repository)
        {
            InitializeComponent();
            this.repository = repository;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            LogUtil.Log.Warning("测试日志");
           var resp= repository.SelectNoTracking.ToList();
        }
    }
}
